/*
 *  Copyright (C) 2012 Компания ВИТ. web: http://diasled.ru Е-mail:  vit@diasled.ru
 * 
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package ru.apertum.diasled.model.exam;

import javax.swing.tree.DefaultTreeModel;
import ru.apertum.diasled.common.Uses;
import ru.apertum.diasled.model.Visit;

/**
 *
 * @author Evgeniy Egorov, Aperum Projects
 */
public class ExamTree extends DefaultTreeModel {

    final private Visit visit;
    //final private LinkedList<Examination> nodes;

    public ExamTree(Visit visit) {
        super(null, true);

        this.visit = visit;
        //nodes = Examination.getExams(visit);
        //setRoot(new RootNodeExam(nodes));
        setRoot(new RootNodeExam(visit.getExams()));
        Uses.log.logger.info("Создали дерево обследований.");
    }
}
